package com.jlcindia.spring;

public class Hello {
	private A aobj;
	private B bobj;
	
	public Hello(){
		System.out.println("Constructor: Hello() default");
	}
	
	public Hello(A aobj){
		System.out.println("Constructor: Hello(aobj)");
		this.aobj=aobj;
	}

	public Hello(B bobj){
		System.out.println("Constructor: Hello(bobj)");
		this.bobj=bobj;
	}
	
	public Hello(A aobj, B bobj){
		System.out.println("Constructor: Hello(aobj, bobj)");
		this.aobj=aobj;
		this.bobj=bobj;
	}
	
	public void show(){
		System.out.println(aobj);
		System.out.println(bobj);
	}
}
